﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YmtAuth.Domain.Model.BlacklistUser;
using YmtAuth.Repository.Register;

namespace YmtAuth.Repository.YmtAuthDomainRepository.RegisterEntity
{
    public class YmatouBlacklistUserMappingCfg : RegisterEntityMappingConfigure
    {

        public override EntityMappingConfigure RegisterEntity()
        {
            return new EntityMappingConfigure
            {
                MappType = typeof(YmatouBlacklistUser),
                ToDatabase = "Ymt_BlacklistUser_201410",
                ToCollection = "YmatouBlacklistUser"
            };
        }
    }
    public class RequestIpInfoRepositoryMappingCfg : RegisterEntityMappingConfigure
    {
        public override EntityMappingConfigure RegisterEntity()
        {
            return new EntityMappingConfigure
            {
                MappType = typeof(BlackList),
                ToDatabase = "Ymt_BlacklistUser_201410",
                ToCollection = "YmatouBlacklist_Ip"
            };
        }
    }
    //public class IpRequestHistoryRepositoryMappingCfg : RegisterEntityMappingConfigure
    //{
    //    public override EntityMappingConfigure RegisterEntity()
    //    {
    //        return new EntityMappingConfigure
    //        {
    //            MappType = typeof(IpRequestHistory),
    //            ToDatabase = "Ymt_RequestIpInfo",
    //            ToCollection = "IpRequestHistory"
    //        };
    //    }
    //}
}
